package cn.wolfcode.service;

import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleService {
    public PageInfo<Role> listPage(QueryObject queryObject);

    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

    void  insertRelation( Long id,  Long[] ids);

    void  deleteRelation( Long id);

    void deletePRelation(Long id);

    void  insertPRelation(@Param("id") Long id, @Param("ids") Long[] ids);


}
